package com.wuze.cloud.util;


import com.wuze.cloud.config.MatchLicense;
import lombok.extern.slf4j.Slf4j;

import java.io.File;
import java.io.IOException;


/**
 * @author wuze
 */
@Slf4j
public class FileConvertUtil {


    public static File wordBytes2HtmlFile(byte[] wordBytes, String htmlFilePath) {
        MatchLicense.init();
        return Word2HtmlUtil.wordBytes2HtmlFile(wordBytes, htmlFilePath);
    }

    public static void main(String[] args) throws IOException {

        File file = new File("C:\\Users\\guming\\Desktop\\file-manager-db\\2023-03-15\\8e335aaa5c13ed82e54f39fc3afe0423.docx");
        byte[] bytes = FileUtil.file2byte(file);
        wordBytes2HtmlFile(bytes,"C:\\Users\\guming\\Desktop\\file-manager-db\\zip-temp\\aaa.html");
    }


}

